package com.su.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
@TableName(value = "user_role")
public class UserRole {
    /**
     * 用户编号
     */
    @TableId(value = "UID", type = IdType.AUTO)
    private Integer UID;

    /**
     * 角色编号
     */
    @TableId(value = "RID", type = IdType.AUTO)
    private Integer RID;
    private List<User> users;
    public static final String COL_UID = "UID";

    public static final String COL_RID = "RID";
}